home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-09-17 | 1.9 KB | 75 lines | [TEXT/MPS ] |
- //========================================================================================
- //
- // File: SLCyPart.idl
- // Release Version: $ ODF 2 $
- //
- // Copyright: (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
- //
- // Support for CyberPartExtension. Subclass of CyberPartExtension,
- // which can be customized using callbacks, removing the
- // need to create a new SOM subclass in each part.
- //
- //========================================================================================
-
- #ifndef SLCYPART_IDL
- #define SLCYPART_IDL
-
- #ifndef __CYBERPARTEXTENSION__
- #include <CyberPartExtension.idl>
- #endif
-
- #pragma somemittypes reset
-
- typedef somToken FW_HCyberPartInterfaceCallbacks;
-
- module ODF
- {
- interface FW_OCyberPartExtension : CyberPartExtension
- {
- // XXX passing a pointer to a SOM object. How does this work with
- // DSOM? Who should own the pointed-to object?
- void SetCallbacks (in FW_HCyberPartInterfaceCallbacks callbacks);
- void DefaultOpenCyberItem (in CyberItem item, in ODPart openerPart, in ParameterSet openParams);
- ODBoolean DefaultHandleCommand (in long commandCreator, in long commandID, in ODFrame frame, in void* commandData);
-
- implementation
- {
- functionprefix = SLCyPart__;
-
- override:
- Release,
- OpenCyberItem,
- SetCyberItem,
- CanShowCyberItem,
- ShowCyberItem,
- GetCyberItemWindow,
- IsCyberItemSelected,
- AcquireSelectedCyberItems,
- IsURLSelected,
- GetSelectedURL,
- HandleCommand;
-
- releaseorder:
- SetCallbacks,
- DefaultOpenCyberItem,
- DefaultHandleCommand;
-
- majorversion = 1;
- minorversion = 0;
-
- passthru C_xh =
- "struct FW_SCyberPartExtensionCallbacks;"
- "typedef FW_SCyberPartExtensionCallbacks* FW_HCyberPartInterfaceCallbacks;";
-
- passthru C_xih =
- "#include \"SLCyPart.h\"";
-
- // data:
- FW_HCyberPartInterfaceCallbacks fCallbacks;
- };
- };
- };
-
- #endif // SLCYPART_IDL
-
-